<!DOCTYPE html>
<html lang="en">
<head>
      <meta charset="UTF-8">
      <title>练习</title>
      <script src="https://unpkg.com/vue/dist/vue.js"></script>
</head>
<body>
  <div id="example">
     <p>Original message: "{{message }}"</p>
     <p>Computed reversed message: "{{reversedMessage }}"</p>
  </div>
<script>
     var vm = new Vue({
         el: '#example',
         data: {
           message: 'hello'
               },
         computed: {
         
            reversedMessage: function () {
              return this.message.split('').reverse().join('')
}
}

})
</script>
</body>
</html>
